<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../../css/app.css">
    <link rel="stylesheet" type="text/css" href="../../../css/tabBar.css">
    <link rel="stylesheet" type="text/css" href="../comm/shop_comm.css">
    <link rel="stylesheet" type="text/css" href="./css/shop_edit_member.css">
    <title>会员商品列表</title>
</head>

<body>
    <div class="header navigationBar">
      	<div class="wrapper">
          	<span id="btn-back" class="header-btn left-btn backtrack"></span>
          	<span class="title">会员商品列表</span>
      	</div>
  	</div>
  	<div class="container top-container">

		<div class="goods_mge_null">
			<img src="../../../image/shop/buy/buy-84.png"/>
  			<h2>空空如也</h2>
  			<p>可以添加会员商品</p>
  			<a href="javascript:void(0);" @click="goodsMangeAdd">添加会员商品</a>
		</div>

		<div class="goods_mge_list" ref="goodsMgeUl">
			<ul class="goods_mge_ul" :class="tabIndex==0 ? 'active' : ''">  <!-- 出售中商品列表 -->
				<li v-for="item in classifyList" :data-id="item.goods_id">
					<div class="goods_mge_info" @click="open_detail(item.goods_id)">
						<div class="goods_list_img">
							<img :src="item.cover+'?x-oss-process=image/resize,m_lfit,w_960'"/>
							<div v-if="item.isSoldOut"><span>已下架</span></div>
						</div>
						<div class="goods_list_detail">
							<h2 v-html='item.name'></h2>
							<b>¥ <span v-html="item.sale_price"></span> </b>
							<!-- <div>
								<span>库存<i v-html="item.all_stock"></i></span>
								<span>收藏<i v-html="item.favorite"></i></span>
								<u>添加时间：<span v-html="item.date_add"></span> </u>
							</div> -->
						</div>
            <div class="del_button" @click.stop @click="productDel(item.goods_id)">删除</div>
					</div>
				</li>
			</ul>

		</div>
	  	<div class="shop_footer" v-show="tabIndex!=2">
	  		<a href="javascipr:void(0);" class="goodsAdd" @click="goodsMangeAdd">
	  			<i></i>添加会员商品
	  		</a>
	  	</div>

</body>
<script src="../../sea.js" data-main="../../main"></script>
<script type="text/javascript" src="../../vue.js"></script>
<script type="text/javascript" src="./js/shopEditMember.js"></script>
</html>
